package com.jiejie.controller;

import com.jiejie.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DelController {
    @Autowired
    private IOrderService orderService;
    @GetMapping ("delOrder")
    public String delOrder(@RequestParam("orderId") Integer orderId){
        orderService.delOrder(orderId);
        return "ok";
    }
}
